package com.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * staff_qiye_change_record
 * @author 
 */
@Data
@TableName(resultMap = "staffQiyeChangeRecord")
public class StaffQiyeChangeRecord implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 员工ID
     */
    private String staffId;

    /**
     * 修改前企业
     */
    private String beforeChangeQyId;

    /**
     * 修改后企业
     */
    private String afterChangeQyId;

    /**
     * 修改前物业
     */
    private String beforeChangeWyId;

    /**
     * 修改后物业
     */
    private String afterChangeWyId;

    /**
     * 操作时间
     */
    private Date operDate;

    @TableField(exist = false)
    private Staff staff;        //员工

    @TableField(exist = false)
    private Qiye beforeQiye;    //修改前企业
    @TableField(exist = false)
    private Qiye afterQiye;     //修改后企业

    @TableField(exist = false)
    private Wuye beforeWuye;    //修改前物业
    @TableField(exist = false)
    private Wuye afterWuye;     //修改后物业

    private static final long serialVersionUID = 1L;
}